package com.neusoft.student.model;

/**
 * @Author: duan
 * @Date: Create in 10:05 2020/10/21
 */
public class Student {
    private Integer id;
    private String username;
    private String password;
    private String sex;
    private String phone;
    private String dormitory;

    public Student() {}

    public Student(Integer id, String username, String password, String sex, String phone, String dormitory) {
        this.id = id;
        this.username = username;
        this.password = password;
        this.sex = sex;
        this.phone = phone;
        this.dormitory = dormitory;
    }

    public Integer getId() {
        return id;
    }

    public Student setId(Integer id) {
        this.id = id;
        return this;
    }

    public String getUsername() {
        return username;
    }

    public Student setUsername(String username) {
        this.username = username;
        return this;
    }

    public String getPassword() {
        return password;
    }

    public Student setPassword(String password) {
        this.password = password;
        return this;
    }

    public String getSex() {
        return sex;
    }

    public Student setSex(String sex) {
        this.sex = sex;
        return this;
    }

    public String getPhone() {
        return phone;
    }

    public Student setPhone(String phone) {
        this.phone = phone;
        return this;
    }

    public String getDormitory() {
        return dormitory;
    }

    public Student setDormitory(String dormitory) {
        this.dormitory = dormitory;
        return this;
    }

    @Override
    public String toString() {
        final StringBuffer sb = new StringBuffer("Student{");
        sb.append("id=").append(id);
        sb.append(", username='").append(username).append('\'');
        sb.append(", password='").append(password).append('\'');
        sb.append(", sex='").append(sex).append('\'');
        sb.append(", phone='").append(phone).append('\'');
        sb.append(", dormitory='").append(dormitory).append('\'');
        sb.append('}');
        return sb.toString();
    }
}
